/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tcloudclient;

import java.io.File;
import tcloudclient.contex.Context;

/**
 *
 * @author Tomas
 */
public class Utils {
    
    public static String generatePaht(String[] path){
        String result = Context.getInstance().getApplicationSettings().getRegisterDir().getAbsolutePath() + File.separator;
        
        for (int i = 0; i < path.length; i++) {
            result += path[i];
            if(i < path.length - 1){
                result += File.separator;
            }            
        }
        
        return result;
    }
    
}
